/* SecureCloud Subscribe Responsive CSS */
.sc-subscribe-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.sc-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #000;
}

.sc-subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #555;
}

.sc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* Horizontal Layout */
.sc-layout-horizontal .sc-form {
    flex-direction: row;
    align-items: stretch;
}

.sc-layout-horizontal .sc-input-wrap {
    width: 70%;
    flex-shrink: 0;
}

.sc-layout-horizontal .sc-button-wrap {
    width: calc(30% - 10px);
    flex-shrink: 0;
}

/* Vertical Layout */
.sc-layout-vertical .sc-form {
    flex-direction: column;
}

.sc-layout-vertical .sc-input-wrap,
.sc-layout-vertical .sc-button-wrap {
    width: 100%;
}

/* Input and Button Styling */
.sc-input {
    width: 100%;
    height: 45px;
    padding: 12px 15px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    outline: none;
}

.sc-button {
    width: 100%;
    height: 45px;
    padding: 12px 25px;
    background-color: #e25b76;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    line-height: normal;
}

.sc-button:hover {
    background-color: #dbdbdb;
}

.sc-input::-webkit-input-placeholder {
    color: #fff !important;
}

.sc-message {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.sc-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.sc-error {
    background-color: #ffebee;
    color: #c62828;
}

/* Responsive Rules - Exact 767px breakpoint */
@media (max-width: 767px) {

    /* Force horizontal layout to stack */
    .sc-layout-horizontal .sc-form,
    .elementor .sc-layout-horizontal .sc-form {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Force input container to full width */
    .sc-layout-horizontal .sc-input-wrap,
    .elementor .sc-layout-horizontal .sc-input-wrap,
    .elementor-widget-container .sc-layout-horizontal .sc-input-wrap {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        margin-bottom: 5px !important;
    }

    /* Force button container to full width */
    .sc-layout-horizontal .sc-button-wrap,
    .elementor .sc-layout-horizontal .sc-button-wrap,
    .elementor-widget-container .sc-layout-horizontal .sc-button-wrap {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Ensure actual input and button are full width */
    .sc-input,
    .sc-button,
    .elementor .sc-input,
    .elementor .sc-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

    }

    /* Reset any calculated widths that might be overriding */
    .sc-layout-horizontal .sc-button-wrap {
        width: 100% !important;
        /* Override the calc() width from desktop styles */
    }
}