* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Modern Global Contact Form Styles */
.bestoychev-global-contact-form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 40px 20px;
    color: #2d2d2d;
    position: relative;
    overflow: visible;
	width: 100%;
    max-width: 700px;
    margin: 200px auto;
    margin-bottom: 2rem;
    /* Override offers.css container styles */
    display: block !important;
    justify-content: initial !important;
    align-items: initial !important;
    flex-direction: initial !important;
    gap: initial !important;
    background: none !important;
}

.bestoychev-global-contact-form .container {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Ensure container inside contact form doesn't inherit offers.css styles */
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bestoychev-global-contact-form .header {
	display: flex;
	flex-direction: column;
	align-items: center;
    text-align: center;
    margin-bottom: 20px;
	max-width: 400px;
	margin-inline: auto;
}

.bestoychev-global-contact-form .icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.bestoychev-global-contact-form .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(216, 150, 101, 0.25);
}

.bestoychev-global-contact-form .icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.3) 0%, rgba(216, 150, 101, 0.3) 100%);
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.bestoychev-global-contact-form .icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.bestoychev-global-contact-form h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 38px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bestoychev-global-contact-form .subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 30px;
}

.bestoychev-global-contact-form .open-form-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(216, 150, 101, 0.3);
    font-family: inherit;
}

.bestoychev-global-contact-form .open-form-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.bestoychev-global-contact-form .open-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(216, 150, 101, 0.4);
}

.bestoychev-global-contact-form .open-form-btn:hover::before {
    left: 100%;
}

.bestoychev-global-contact-form .open-form-btn:active {
    transform: translateY(-1px);
}

/* Modal Styles */
.popup-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-container__overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.popup-container__inner {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.global-contact-modal {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
    max-width: 600px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-y: auto;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%,-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
    }
}

.global-contact-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #FF6B35;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.global-contact-modal .close-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.global-contact-modal .close-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bestoychev-global-contact-form .form-card,
.global-contact-modal .form-card {
    background: white;
    width: 100%;
    border-radius: 28px;
    padding: 48px;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    overflow-y: auto;
}

.bestoychev-global-contact-form .form-card::before,
.global-contact-modal .form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8E53 50%, #FF6B35 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.bestoychev-global-contact-form .form-group,
.global-contact-modal .form-group {
    margin-bottom: 20px;
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bestoychev-global-contact-form .form-group:nth-child(1),
.global-contact-modal .form-group:nth-child(1) { animation-delay: 0.1s; }
.bestoychev-global-contact-form .form-group:nth-child(2),
.global-contact-modal .form-group:nth-child(2) { animation-delay: 0.15s; }
.bestoychev-global-contact-form .form-group:nth-child(3),
.global-contact-modal .form-group:nth-child(3) { animation-delay: 0.2s; }
.bestoychev-global-contact-form .form-group:nth-child(4),
.global-contact-modal .form-group:nth-child(4) { animation-delay: 0.25s; }
.bestoychev-global-contact-form .form-group:nth-child(5),
.global-contact-modal .form-group:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bestoychev-global-contact-form label,
.global-contact-modal label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.bestoychev-global-contact-form .required,
.global-contact-modal .required {
    color: #d89665;
    margin-left: 2px;
}

.bestoychev-global-contact-form .optional,
.global-contact-modal .optional {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.bestoychev-global-contact-form .input-wrapper,
.global-contact-modal .input-wrapper {
    position: relative;
}

.bestoychev-global-contact-form .input-icon,
.global-contact-modal .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.bestoychev-global-contact-form input,
.bestoychev-global-contact-form textarea,
.global-contact-modal input,
.global-contact-modal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e5df;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #2d2d2d;
    background: #fafaf9;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestoychev-global-contact-form .input-wrapper input,
.global-contact-modal .input-wrapper input {
    padding-left: 44px;
}

.bestoychev-global-contact-form input:focus,
.bestoychev-global-contact-form textarea:focus,
.global-contact-modal input:focus,
.global-contact-modal textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216, 150, 101, 0.12),
                0 2px 8px rgba(216, 150, 101, 0.08);
}

.bestoychev-global-contact-form input:focus ~ .input-icon,
.global-contact-modal input:focus ~ .input-icon {
    stroke: #FF6B35;
    transform: translateY(-50%) scale(1.1);
}

.bestoychev-global-contact-form input::placeholder,
.bestoychev-global-contact-form textarea::placeholder,
.global-contact-modal input::placeholder,
.global-contact-modal textarea::placeholder {
    color: #aaa;
}

.bestoychev-global-contact-form textarea,
.global-contact-modal textarea {
    resize: none;
    min-height: 110px;
}

.bestoychev-global-contact-form .submit-btn,
.global-contact-modal .submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(216, 150, 101, 0.3);
    font-family: inherit;
}

.bestoychev-global-contact-form .submit-btn::before,
.global-contact-modal .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.bestoychev-global-contact-form .submit-btn:hover,
.global-contact-modal .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(216, 150, 101, 0.4);
}

.bestoychev-global-contact-form .submit-btn:hover::before,
.global-contact-modal .submit-btn:hover::before {
    left: 100%;
}

.bestoychev-global-contact-form .submit-btn:active,
.global-contact-modal .submit-btn:active {
    transform: translateY(-1px);
}

.bestoychev-global-contact-form .submit-btn:disabled,
.global-contact-modal .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bestoychev-global-contact-form .privacy-note,
.global-contact-modal .privacy-note {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 24px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bestoychev-global-contact-form .privacy-note svg,
.global-contact-modal .privacy-note svg {
    width: 14px;
    height: 14px;
    stroke: #999;
    flex-shrink: 0;
}

/* Global contact form success message - same styles as multistep form */
.global-contact-modal .success-message,
.global-contact-modal #globalContactSuccessMessage,
.form-card #globalContactSuccessMessage {
    display: none !important;
    text-align: center;
    padding: 60px 40px;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-contact-modal .success-message.show,
.global-contact-modal #globalContactSuccessMessage.show,
.form-card #globalContactSuccessMessage.show,
#globalContactSuccessMessage.show {
    display: block !important;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.global-contact-modal .success-icon,
.form-card #globalContactSuccessMessage .success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10B981, #34D399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 48px;
    color: white;
    position: relative;
    animation: checkmark 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        rotate: -45deg;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        rotate: 0deg;
    }
}

.global-contact-modal .success-icon::before,
.form-card #globalContactSuccessMessage .success-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 3px solid #34D399;
    border-radius: 50%;
    opacity: 0.3;
}

.global-contact-modal .success-icon svg,
.form-card #globalContactSuccessMessage .success-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.global-contact-modal .success-message h3,
.form-card #globalContactSuccessMessage h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    color: #1A1A1A;
    font-weight: 700;
}

.global-contact-modal .success-message p,
.form-card #globalContactSuccessMessage p {
    color: #7C7C7C;
    font-size: 16px;
    line-height: 1.6;
}

/* Keep old styles for non-modal global contact form (if used elsewhere) */
.bestoychev-global-contact-form .success-message {
    display: none;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ed 100%);
    border: 2px solid #a7dfc5;
    border-radius: 20px;
    margin-top: 24px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bestoychev-global-contact-form .success-message.show {
    display: block;
}

.bestoychev-global-contact-form .success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #52c688 0%, #3eb574 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    box-shadow: 0 8px 24px rgba(82, 198, 136, 0.3);
}

.bestoychev-global-contact-form .success-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bestoychev-global-contact-form .success-message h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.bestoychev-global-contact-form .success-message p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.bestoychev-global-contact-form .form-error,
.global-contact-modal .form-error {
    color: #ff4757;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px 16px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #ffc9d0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .global-contact-modal .form-card {
        padding: 48px 16px;
    }
}

@media (max-width: 480px) {
    .bestoychev-global-contact-form {
        margin: 100px auto;
        padding: 24px 16px;
    }
    
    .bestoychev-global-contact-form .form-card {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .bestoychev-global-contact-form h1 {
        font-size: 26px;
    }

    .bestoychev-global-contact-form .subtitle {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .bestoychev-global-contact-form .icon {
        width: 56px;
        height: 56px;
    }
    
    .bestoychev-global-contact-form .icon svg {
        width: 28px;
        height: 28px;
    }
}
