/* Ramaya Contact Form - Elegant Modern Card */

.rc-form-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.rc-form-wrapper * {
    box-sizing: border-box;
}

.rc-form-inner {
    background: #ffffff;
    border-radius: 24px;
    padding: 55px 50px;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 12px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.rc-form-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #06b6d4, #0ea5e9);
    background-size: 300% 100%;
    animation: rc-shimmer 4s ease infinite;
}

@keyframes rc-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */
.rc-header {
    margin-bottom: 45px;
    text-align: center;
}

.rc-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.rc-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 auto;
    line-height: 1.7;
    max-width: 480px;
}

/* Form */
.rc-form {
    width: 100%;
}

.rc-row {
    display: flex;
    gap: 28px;
    margin-bottom: 0;
}

.rc-row .rc-field {
    flex: 1;
}

.rc-field {
    margin-bottom: 28px;
}

.rc-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.rc-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 8px;
    color: #0ea5e9;
}

.rc-label-icon svg {
    width: 16px;
    height: 16px;
}

.rc-required {
    color: #0ea5e9;
    font-weight: 700;
}

.rc-field input,
.rc-field textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.rc-field input::placeholder,
.rc-field textarea::placeholder {
    color: #94a3b8;
}

.rc-field input:hover,
.rc-field textarea:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.rc-field input:focus,
.rc-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 
        0 0 0 4px rgba(14, 165, 233, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.rc-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Submit Button */
.rc-submit {
    width: 100%;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rc-submit-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.rc-submit-icon svg {
    width: 20px;
    height: 20px;
}

.rc-submit:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(14, 165, 233, 0.3),
        0 4px 10px rgba(14, 165, 233, 0.2);
}

.rc-submit:hover .rc-submit-icon {
    transform: translate(3px, -3px);
}

.rc-submit:active {
    transform: translateY(-1px);
}

.rc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading State */
.rc-submit.rc-loading .rc-submit-text {
    opacity: 0;
}

.rc-submit.rc-loading .rc-submit-icon {
    position: absolute;
    animation: rc-spin 1s linear infinite;
}

@keyframes rc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages */
.rc-message {
    margin-top: 28px;
    padding: 20px 25px;
    border-radius: 14px;
    display: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    animation: rc-slideUp 0.4s ease;
}

@keyframes rc-slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rc-message.success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.rc-message.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.rc-message.error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rc-message.error::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .rc-form-inner {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .rc-title {
        font-size: 26px;
    }
    
    .rc-subtitle {
        font-size: 15px;
    }
    
    .rc-row {
        flex-direction: column;
        gap: 0;
    }
    
    .rc-field input,
    .rc-field textarea {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .rc-form-inner {
        padding: 30px 22px;
        border-radius: 16px;
    }
    
    .rc-title {
        font-size: 22px;
    }
    
    .rc-subtitle {
        font-size: 14px;
    }
    
    .rc-label-icon {
        width: 28px;
        height: 28px;
    }
    
    .rc-label-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .rc-field input,
    .rc-field textarea {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .rc-submit {
        padding: 16px 28px;
        font-size: 15px;
        border-radius: 12px;
    }
}
