/**
 * My Contact Form Pro - Frontend Styles
 * Same as original design - DO NOT MODIFY
 */

.mcf-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.mcf-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: mcf-glow 3s ease-in-out infinite;
}

@keyframes mcf-glow {
    0%, 100% { box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 20px 80px rgba(118, 75, 162, 0.6); }
}

.mcf-form {
    background: #ffffff;
    border-radius: 15px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.mcf-form::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: mcf-rotate 20s linear infinite;
}

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

.mcf-form-title {
    text-align: center;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mcf-form-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.mcf-form-group {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.mcf-label {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.mcf-form-group:hover .mcf-label {
    color: #667eea;
}

.mcf-input,
.mcf-textarea,
.mcf-file-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.mcf-input:focus,
.mcf-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.mcf-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.mcf-file-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.mcf-file-input {
    position: absolute;
    left: -9999px;
}

.mcf-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mcf-file-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.mcf-file-label:hover::before {
    left: 100%;
}

.mcf-file-label:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mcf-file-icon {
    margin-right: 10px;
    font-size: 20px;
}

.mcf-file-text {
    font-size: 16px;
    font-weight: 500;
}

.mcf-file-info {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.mcf-selected-file {
    margin-top: 10px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 5px;
    font-size: 14px;
    color: #667eea;
    display: none;
    animation: mcf-slideIn 0.3s ease;
}

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

.mcf-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mcf-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mcf-submit-btn:hover::before {
    left: 100%;
}

.mcf-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.mcf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mcf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: mcf-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes mcf-spin {
    to { transform: rotate(360deg); }
}

.mcf-message {
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    animation: mcf-fadeIn 0.5s ease;
    display: none;
}

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

.mcf-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #0a5f3e;
    border: 2px solid #5fd098;
}

.mcf-error {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #8b0000;
    border: 2px solid #ff6b6b;
}

.mcf-field-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    animation: mcf-shake 0.5s ease;
}

@keyframes mcf-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.mcf-input.error,
.mcf-textarea.error {
    border-color: #ff6b6b;
    background: #fff5f5;
}

@media (max-width: 600px) {
    .mcf-form {
        padding: 30px 20px;
    }
    
    .mcf-form-title {
        font-size: 24px;
    }
}

/* Additional hover effects */
.mcf-form-group {
    transition: transform 0.3s ease;
}

.mcf-form-group:hover {
    transform: translateX(5px);
}

/* Floating labels effect */
.mcf-floating-group {
    position: relative;
    margin-bottom: 30px;
}

.mcf-floating-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
}

.mcf-input:focus + .mcf-floating-label,
.mcf-input:not(:placeholder-shown) + .mcf-floating-label,
.mcf-textarea:focus + .mcf-floating-label,
.mcf-textarea:not(:placeholder-shown) + .mcf-floating-label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #667eea;
}

/* GDPR Checkbox Styles */
.mcf-gdpr-group {
    margin-top: 20px;
}

.mcf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.mcf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #667eea;
    cursor: pointer;
}

.mcf-checkbox-text {
    line-height: 1.5;
}

/* Ripple Effect */
.mcf-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: mcf-ripple-animation 0.6s ease-out;
    background: rgba(255,255,255,0.5);
}

@keyframes mcf-ripple-animation {
    to {
        transform: scale(200);
        opacity: 0;
    }
}
